﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
using CLEX.AdminUI.Services;
using CLEX.AdminUI.View;
using CLEX.AdminUI.ViewModel;

namespace CLEX.AdminUI
{
    public partial class App : Application
    {
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            Facade facade = new Facade(new MessageService(), new ProxyService(), new WindowService());
            MainView vw = new MainView();
            MainVM vm = new MainVM(facade);
            vw.DataContext = vm;
            vw.ShowDialog();
        }
    }
}
